package com.example.demo.blog.mapper;

import com.baomidou.mybatisplus.solon.plugins.pagination.Page;
import com.example.demo.blog.dto.BlogDTO;
import com.example.demo.blog.dto.req.BlogSearchReq;
import com.example.demo.blog.model.Blog;
import com.example.demo.core.web.core.mapper.DemoBaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 自动发现表 Mapper 接口
 * </p>
 *
 * @author Airhead
 */
@Mapper
public interface BlogMapper extends DemoBaseMapper<Blog> {
  List<BlogDTO> list(
          @Param("searchReq") BlogSearchReq searchReq);

  Page<BlogDTO> paginate(
      Page page,
      @Param("searchReq") BlogSearchReq searchReq);
}
